package com.tian.controller.management;

import com.tian.common.CommonResult;
import com.tian.dto.special.SpecialRespDto;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * {@code @description:} TODO
 *
 * @author tianwc 公众号：Java后端技术全栈
 * 在线刷题 1200+java面试题和1000+篇技术文章：<a href="https://woaijava.cc/">博客地址</a>
 * {@code @date:} 2024-10-23 16:39
 * {@code @version:} 1.0
 */
@RestController
@RequestMapping("/management/special")
public class SpecialController {

    @RequestMapping("/list")
    public CommonResult<List<SpecialRespDto>> list() {
        List<SpecialRespDto> specialRespDtoList = new ArrayList<>();
        SpecialRespDto specialRespDto = new SpecialRespDto();
        specialRespDto.setId(1);
        specialRespDto.setName("BYD");
        specialRespDtoList.add(specialRespDto);
        SpecialRespDto specialRespDto1 = new SpecialRespDto();
        specialRespDto1.setId(2);
        specialRespDto1.setName("特斯拉");
        specialRespDtoList.add(specialRespDto1);
        return CommonResult.success(specialRespDtoList);
    }
}
